const express = require("express");
const router = express.Router();
const {
  getCtr,
  getCtr1,
  putCtr,
  postCtr,
  delCtr,
  postCtr1,getRecycle,postRecycle,getRecycles,delRecycle,delRecycles,
} = require("../../../controller/admin/applicationForExtraWork");

//查询全部数据
router.get("/applicationForExtraWorkAll", getCtr);

// 模糊查询
router.get("/applicationForExtraWorkA", getCtr1);

// 开启新增
router.post("/applicationForExtraWorkA", postCtr);
router.post("/applicationForExtraWorkA1", postCtr1);

// 修改信息
router.put("/applicationForExtraWorkA", putCtr);


// 删除
router.delete("/applicationForExtraWorkA", delCtr);

//====================回收站=======================
//查询全部数据
router.get("/RecycleAll", getRecycle);
// 开启新增
router.post("/Recycleadd", postRecycle);

// 模糊查询
router.get("/Recycles", getRecycles);

// 删除
router.delete("/Recycledel", delRecycle);
// 恢复
router.delete("/Recycledels", delRecycles);
module.exports = router;
